
from rest_framework.pagination import PageNumberPagination


class CustomPagination(PageNumberPagination):
    """
    自定义分页
    """

    def __init__(self):
        self.page_size_query_param = 'page_size'  # 指定页面大小请求参数：&page_size=10
